package com.sdgs.paas.sdk.core;

/**
 * SDK标准HTTP请求参数
 *
 * @author wjj
 * 
 * @param <T>
 * 请求报文里，微服务开发者自定义的部分，必须是一个{@link IPaasParam}对象
 * 
 */
public class PaasBaseRequest<T extends IPaasParam> extends PaasBaseObject {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3385102147095861884L;
	private T body;
	
	public PaasBaseRequest() {
	}

	public PaasBaseRequest(T body) {
		this.body=body;
	}

	@Override
	public String paramInfo() {
		StringBuilder sb = new StringBuilder();

		sb.append("Class=").append(this.getClass().getName()).append(",")
				.append(body.paramInfo());

		return sb.toString();
	}

	public T getBody() {
		return body;
	}

	public void setBody(T body) {
		this.body = body;
	}

}
